// 管理用户个人信息
import {defineStore} from 'pinia'
import {ref} from 'vue'
import {HTTP} from "@/api/HTTP.js";

const useUserInformationStore = defineStore('userInformation', () => {
    const userData = ref({})
    const isShow = ref(true)

    const getUserData = async () => {
        await HTTP.get('/user')
            .then(res => {
                userData.value = res.data
            })
    }
    return {userData, getUserData, isShow}
})

export default useUserInformationStore